pub fn new_count_distinct(input_str: &str) -> usize {
    let mut mp = std::collections::HashMap::new();
    let mut count = 0;
    let mut start = 0;
    for idx in 0..input_str.len() {
        if (input_str.as_bytes()[idx] as char) == ',' {
            let word = &input_str[start..idx];
            if !mp.contains_key(word) {
                mp.insert(word, 1);
                count += 1;
            }
            start = idx + 1;
        }
    }
    let word = &input_str[start..];
    if !mp.contains_key(word) {
        mp.insert(word, 1);
        count += 1;
    }
    count
}
